import { injectable, inject } from "inversify";
import { PrismaClient } from '@prisma/client'

/**
 * ## 数据库
 */
@injectable()
export class DB {
  prisma: PrismaClient
  constructor(
    @inject('prisma') PrismaClient: () => PrismaClient
  ) {
    this.prisma = PrismaClient()
  }
}